package model;

import java.util.ArrayList;

import java.util.List;
import java.util.Random;

public class Student {
	private int studentID;
	private String password;
	private String name;
	private String gender;
	private String birthdate;
	private String classes;
	List<Subject> sublist = new ArrayList<>();
	public Student() {
		
	}
	public Student(int studentID, String name, String classes, String gender, String birthdate) {
		this.studentID = studentID;
		this.name = name;
		this.classes = classes;
		this.gender = gender;
		this.birthdate = birthdate;
	}
	

	public int getStudentID() {
		return studentID;
	}


	public void setStudentID(int studentID) {
		this.studentID = studentID;
	}


	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getGender() {
		return gender;
	}


	public void setGender(String gender) {
		this.gender = gender;
	}


	public String getBirthdate() {
		return birthdate;
	}


	public void setBirthdate(String birthdate) {
		this.birthdate = birthdate;
	}


	public String getClasses() {
		return classes;
	}


	public void setClasses(String classes) {
		this.classes = classes;
	}


	public List<Subject> getSublist() {
		return sublist;
	}


	public void setSublist(List<Subject> sublist) {
		this.sublist = sublist;
	}

	
	@Override
	public String toString() {
		return "Student [studentID=" + studentID  + ", name=" + name + ", gender=" + gender
				+ ", birthdate=" + birthdate + ", classes=" + classes + "]";
	}


	{
		Random rand = new Random();
		int randNum = rand.nextInt(100)+2017211000;
		studentID = randNum;
	}
	
}
